import React from 'react';
import Editor from '@monaco-editor/react';

export default () => {
    function onChange(value: string) {
        console.log(value);
    }
    return (
        <div>
            <h2>MonacoEditor</h2>
            <Editor
                height="90vh"
                defaultLanguage="json"
                defaultValue=""
                onChange={onChange}
            />
        </div>
    );
};
